package com.clotingshoppos.modules.Shiro.util;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import org.apache.shiro.authc.AuthenticationToken;

import java.util.Date;

import static java.security.KeyRep.Type.SECRET;

/**
 * @ClassName: JWTToken
 * @Description:
 * @Author: Izzat
 * @Date: 2019-04-16 15:29
 * @Version: v1.0
 */
public class JWTToken implements AuthenticationToken {
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
